import tableServiceAbstract from "@/core/table/tableService.interface";
import { $claimList, $claimDetail } from "@/api/claim/claim";
export default class menuService implements tableServiceAbstract {
  getTable(params: any): Promise<any> {
    params.page = params.current;
    delete params.current;
    params.limit = params.pageSize;
    delete params.pageSize;
    delete params.total;
    return $claimList(params);
  }
  delete(params: any): Promise<any> {
    return new Promise((resolve) => {
      resolve({
        data: {
          code: 200,
          data: {},
          msg: 'success',
        }
      });
    })
  }
  add(params: any): Promise<any> {
    return new Promise((resolve) => {
      resolve({
        data: {
          code: 200,
          data: {},
          msg: 'success',
        }
      });
    })
  }
  edit(params: any): Promise<any> {
    return new Promise((resolve) => {
      resolve({
        data: {
          code: 200,
          data: {},
          msg: 'success',
        }
      });
    })
  }
  detail(params: any): Promise<any> {
    return $claimDetail(params);
  }
}
